package com.hogocloud.corelibrary.http

import com.hogocloud.corelibrary.LibConfig

/**
 * @Author: gjc
 * @CreateDate: 2019/4/3 11:17 AM
 * @Version: 1.0
 * @Description:
 */
object HttpConstants {

    const val CODE_UNKNOWN = -1024

    /**
     * 统一请求头
     */
    const val HEADER_CONTENT_TYPE = "application/x-www-form-urlencoded"
    const val header_content_type = "Content-Type"
    const val header_token = "X-gvb-auth-token"
    const val header_phone_system = "X-gvb-header-system"
    const val header_phone_model = "X-gvb-header-phone-model"
    const val header_project = "X-gvb-header-project"

    const val HEADER_PHONE_SYSTEM = "Android"

    private const val DEVELOP_URL = "http://api.littlemoment.cn"


    private const val RELEASE_URL = "http://api.littlemoment.cn"



    val BASE_URL = if (LibConfig.isDebug()) DEVELOP_URL else RELEASE_URL

}
